home *** CD-ROM | disk | FTP | other *** search
- ; Update Iris V1.2 to V1.3
-
- path "" add
-
- copy Iris.pch T:
-
- set olddir `cd`
- unset dir
- set dir `requestfile "" TITLE "Select Iris drawer (don't drop files)" DRAWERSONLY`
- if "$dir" eq "*$dir"
- endcli
- endif
-
- cd $dir
- if warn ; ASL/RequestFile bug???
- requestchoice >NIL: Update_Iris "CD failed. Probably you*Ndropped a file on the*Nrequester. Please only*Ndrop drawers." OK
- endcli
- endif
-
- version >NIL: Iris 1 3
- if warn
- requestchoice >NIL: Update_Iris "You need Iris V1.3*Nto use this patch." OK
- endcli
- endif
-
- version >NIL: Iris 1 4
- if not warn
- requestchoice >NIL: Update_Iris "Your Iris program is*Ntoo new for this patch." OK
- endcli
- endif
-
- gpatch Iris T:Iris.pch T:newfile
- if error
- requestchoice >NIL: Update_Iris "Patch failed." OK
- endcli
- endif
- copy T:newfile Iris
- if error
- requestchoice >NIL: Update_Iris "Failed to copy program." OK
- endcli
- endif
-
- gpatch Iris.guide T:Iris.pch T:newfile
- if error
- requestchoice >NIL: Update_Iris "Patch failed." OK
- endcli
- endif
- copy T:newfile Iris.guide
- if error
- requestchoice >NIL: Update_Iris "Failed to copy program." OK
- endcli
- endif
-
- delete >NIL: T:newfile
- delete >NIL: T:Iris.pch
- unset dir
- cd $olddir
- unset olddir
-
- requestchoice >NIL: Update_Iris "Patch finished." OK
-
- endcli
-